Script: --Example by Brian Molyneaux, Heizer Software¬--on windowEvent wdID,wdName,objNo,objName,objValue¬¬if objValue="Open" then ¬ wsSet wdID,"1","Text",the windows¬ ¬else if objValue="Close" then ¬ ¬else if objValue="Suspend" then ¬ ¬else if objValue="Resume" then ¬ ¬else if objValue="CloseBox" then ¬ ¬else if objValue="ZoomBox" then ¬ ¬else if objValue="GrowBox" then ¬ ¬else if objValue="TitleBar" then ¬ ¬end if¬¬--end windowEvent¬
Script: --on mouseUp wdID,wdName,objNo,objName,objValue¬if there is a window objValue then¬ if objValue≠wdName then¬ put the visible of window objValue into vis ¬ set the visible of window objValue to not vis¬ end if¬else¬ answer "This window is no longer available… Popup has been updated to reflect new windows."¬ wsSet wdID,1,TEXT, the windows¬end if¬wsSet wdID,1,"SELECTION",0¬--end mouseUp¬